From 5996c4aa694100d06e95b22f5dd408025503e567 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Wed, 16 Mar 2022 22:57:26 -0500 Subject: [PATCH] Rewire tpg test to not use (removed) mxf format --- testo.d/tpg.test | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/testo.d/tpg.test b/testo.d/tpg.test index 132450e68..1423d91ec 100644 --- a/testo.d/tpg.test +++ b/testo.d/tpg.test @@ -1,11 +1,17 @@ # TPG (NG Topo!) file format # This is hard to test as the datum conversions create minute -# inconsistencies in the coordinates. So.. we test our i/o +# inconsistencies in the coordinates. So.. we test our i/o # against a format that rounds higher than we care to compare -# for binary data. +# for binary data. rm -f ${TMPDIR}/topo.mxf ${TMPDIR}/tpg.mxf ${TMPDIR}/geo.tpg + +# Convert geo -> tpg - to test our writer gpsbabel -i geo -f ${REFERENCE}/geocaching.loc -o tpg -F ${TMPDIR}/geo.tpg -gpsbabel -i tpg -f ${TMPDIR}/geo.tpg -o mxf -F ${TMPDIR}/tpg.mxf -gpsbabel -i tpg -f ${REFERENCE}/tpg.tpg -o mxf -F ${TMPDIR}/topo.mxf -compare ${TMPDIR}/tpg.mxf ${TMPDIR}/topo.mxf + +# Convert THAT tpg to unicsv - to exercise our TPG reader +gpsbabel -i tpg -f ${TMPDIR}/geo.tpg -o unicsv -F ${TMPDIR}/tpg.unicsv + +# Now compare those tw files to see if they match. +gpsbabel -i tpg -f ${REFERENCE}/tpg.tpg -o unicsv -F ${TMPDIR}/topo.unicsv +compare ${TMPDIR}/tpg.unicsv ${TMPDIR}/topo.unicsv -- 2.30.2